package com.rfid.protocol;

import android.util.Log;

import com.rfid.event.GetPowerEvent;

import org.greenrobot.eventbus.EventBus;

/**
 * @author Administrator
 * @date 2020/9/18
 */
public class GetPowerCommand extends Instruction {
    @Override
    public void invoke(byte[] data) {
        String power = Tools.Bytes2HexString(data);
        Log.e("GetPowerCommand", "power=" + power);
        EventBus.getDefault().post(new GetPowerEvent(power));
    }

    @Override
    public byte[] getCommand() {
        return new byte[]{(byte) 0xb7};
    }
}